# # 计算器可以进行基础运算（加、减、乘、除）被除数不为0
# first=float(input("请输入第一个数:"))
# second=float(input("请输入第二个数:"))
# operator=input("请选择运算符：+ - * /:")
# if operator =="+":
#     print(first + second)
# elif operator =="-":
#     print(first - second)
# elif operator =="*":
#     print(first * second)
# elif operator =="/":
#     if second == 0:
#         print("除数不能为0")
#     else :
#         print(first / second)


# # 猜数字
# guess_num =input("请设定猜数的数值：\n")
# for frequency in range(1,6):
#     number=input("请输入第"+str(frequency)+"次猜测的数字：")
#     if number.isdigit() is False:
#         print('请输入一个正确的数字')
#     elif int(number)<0 or int(number)>100:
#         print("请输入1-100范围的数字")
#     elif int(guess_num)==int(number):
#         print("恭喜你用%d次猜对了" % frequency)
#         break
#     elif int(guess_num)> int(number):
#         print("很遗憾，你猜小了")
#     elif int(guess_num)< int(number):
#         print("很遗憾，你猜大了")
#     if frequency==5:
#         print("很遗憾，%d次机会已用尽，游戏结束答案为%d" %
#                 (frequency,int(guess_num)))

# # 逢七拍手
# for i in range(1,101):
#     # 判断条件：不包含七，也不是七的倍数
#     if "7" in str(i) or int(i) % 7 ==0:
#         # 输出，去掉换行符
#         print('*',end="、")
#         # 如果包含七，输出*
#     elif "7" not in str(i)and int(i) % 7!=0:
#         print(i,end='、')



# # 打印五子棋棋盘
# # ┐┌└┐└┘├┤┬┴┼
# size=int(input("请输入棋盘的大小："))
# for i in range(size):
#     for j in range(size):
#         if i==0 and j==0:
#             print("┌",end='')
#         elif i==0 and j==size-1:
#             print("┐",end='')
#         elif i==size-1 and j==0:
#             print("L",end='')
#         elif i==size-1 and j==size-1:
#             print("┘",end='')

#         elif j==0:
#             print("├",end='')
#         elif i==size-1:
#             print("┴",end='')
#         elif j==size-1 :
#             print("┤",end='')
            
#         elif i==0 :
#             print("┬",end='')
#         else:
#             print("┼",end='')
#     print('')


